package com.ithuangyl.common.net;

import java.util.HashMap;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * author : itHuang
 * e-mail : ithuangyl@163.com
 * date   : 2020/7/15 21:35
 */
public interface RestService {

    @GET
    Call<String> get(@Url String url, @QueryMap HashMap<String, Object> map);

    @POST
    Call<String> post(@Url String url, @FieldMap HashMap<String, Object> map);
}
